home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16446 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  958 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 10 Apr 1996 12:59:58 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4kh3vuINNosv@keats.ugrad.cs.ubc.ca>
  8. References: <JSA.96Feb16135027@organon.com> <4kcpgkINNcku@keats.ugrad.cs.ubc.ca> <TYNOR.96Apr9105114@twratl.atlanta.twr.com> <4kgunm$o4o@gde.GDEsystems.COM>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4kgunm$o4o@gde.GDEsystems.COM>, Chet  <kackman> wrote:
  12. >If i = j depends on your unit of address. If i is assumed a longword then
  13. >
  14. >     &i + 4 = &j is true
  15. >     not 
  16. >     &i + 1 = &j
  17.  
  18. Are you serious or is this a (somewhat flat) continuation of the joke?
  19.  
  20. The &i expression yields a pointer to the type of i, and the pointer arithmetic
  21. depends on this type.
  22. -- 
  23.  
  24.